<extend name="default/public/common" />
<block name="main">
    <div class="main">
        <div class="news">
            <div class="container-fixed">
                <div class="row">
                    <div class="col-xs-3">
                        <div class="news-post">
                            <a href="#" class="btn btn-block btn-primary"><i class="icon icon-pencil"></i> 我要投稿</a>
                        </div>
                        <div class="panel">
                            <div class="panel-heading">
                                <h4>栏目分类</h4>
                            </div>
                            <div class="panel-body">
                                <div class="column-list">
                                    <volist name="columns" id="vo">
                                        <if condition="$mid eq $vo['id']">
                                            <a href="{:U('article/index',array('cid'=>$cid,'mid'=>$vo['id']))}" class="btn btn-sm btn-primary">{$vo['title']}</a>
                                        <else />
                                            <a href="{:U('article/index',array('cid'=>$cid,'mid'=>$vo['id']))}" class="btn btn-sm btn-default">{$vo['title']}</a>
                                        </if>
                                    </volist>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-9">
                        <div class="panel">
                            <div class="panel-heading">
                                <h3>新闻资讯</h3>
                                <div class="pull-right">
                                    <div class="btn-group news-tab">
                                        <volist name="columnlist" id="vo">
                                            <if condition="$cid eq $vo['id']">
                                                <a href="{:U('article/index',array('cid'=>$vo['id'],'mid'=>0))}" class="btn btn-primary">{$vo['title']}</a>
                                            <else />
                                                <a href="{:U('article/index',array('cid'=>$vo['id'],'mid'=>0))}" class="btn btn-default">{$vo['title']}</a>
                                            </if>
                                        </volist>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-body">
                                <div class="news-list">
                                    <ul>
                                        <volist name="articlelist" id="vo">
                                            <li><a href="{:U('article/detail',array('id'=>$vo['id']))}" target="_blank">{$vo.title} </a><span class="time">{$vo.ctime|date="y-m-d",###}</span></li>
                                        </volist>
                                    </ul>
                                </div>
                                {$pageshow}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
